package cn.com.thinvent.dispatch.dao;

import cn.com.thinvent.dispatch.entity.MajorExpenses;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MajorExpensesMapper {
    List<MajorExpenses> getExpenses(@Param("offset") int offset,
                                    @Param("pageSize") int pageSize,
                                    @Param("expenseName") String expenseName);

    int countExpenses(@Param("expenseName") String expenseName);

    void insert(MajorExpenses record);

    void update(MajorExpenses record);

    void delete(String id);

    MajorExpenses select(String id);

}
